﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using eBay.Service.Core.Sdk;

namespace eBayBus
{
 
    
    public class EbayConst
    {
       public enum EbayAccountType
       {
            sandbox_testuser_booo_u1 =1,
            product_antboy888 =2
       }

       static ApiContext context_product_antboy888;
       static ApiContext context_product_emmajewelry;
       static ApiContext context_sandbox_testuser_booo_u1;
       static ApiContext context_sandbox_testuser_booo_u2;

        static EbayConst()
       {

           #region context_sandbox_testuser_booo_u1
           context_sandbox_testuser_booo_u1 = new ApiContext();

            context_sandbox_testuser_booo_u1.ApiCredential.ApiAccount.Application = "booodev4b-0441-43a6-87b5-812d096400a";
            context_sandbox_testuser_booo_u1.ApiCredential.ApiAccount.Certificate = "5ba4adc5-c765-4961-9faa-3a678644fc40";
            context_sandbox_testuser_booo_u1.ApiCredential.ApiAccount.Developer = "eb26b3f8-82c9-4aef-b710-26f9a08d4e0e";
            context_sandbox_testuser_booo_u1.ApiCredential.eBayToken = "AgAAAA**AQAAAA**aAAAAA**XxE4Tg**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wFk4CoAZeKoQ6dj6x9nY+seQ**xJoBAA**AAMAAA**6TP0UuaMUyiaxnTnPk/hsGFNw2NgB2Y0H8EdKoylJPUcMyMEpRhOQ/+E11kl+kOF2bWkRDpwMEFesvRifkk/i2YAD/Z7sMaeuzJGgmJ+/VwZP4aQOKIyLwCKVg9BfN0ebRSwA4r/sidAjCwB19CzSPcVNlTrcG/hKVfQKPVZNEPxy1pjaRdOKSZjyxSNbUYruUHr8QD8PUCfzQ6ZZws2gumIuY2a9kmoBew8Bmi51hvso0IGU8nPbGnTKGUGujVYL+HF0rt46E+liWr1foYEpwupamFXko9MEDjU6XaCUjUgI1aXzoiGAyeTwvIzxYC5oeTX+YaoC+/EQyMhUjISq1r1xPth0A0x3dtnaO19PKgAle8kS/1fcgD2rNyOJgfd9UwiJj31wZR8tA53bOxWfOXKA82EW6RxD6uWUfIi4hrbJOCGnL48CfxS78I9zSp09/0387Z6b0/3BWyH4T18FUBid8kF+rVdorF2Hs+SE8cyUtK9HA9s8xwrO6Vo13PsJ+6duBvthQiG9JujMDbVE8xpHMrQ+kWFo0fHRzZTI2a/widUOVPAr0BfbO7Vf2gBHpfR8QsyKQ5Wc2vT5xxYhl8TowvTZlGV13deiqm2shrKwIqLSN/ssW1x6itnIFRjf3GcXdTtkXjf6kgyyqc0CnwIS8/yoJtzjDkUB3XBL+bYhf12s+WzfMdjEo29wXWVL3I1QiWoTA9rQAfmvjxDn0xkINB9ahQGxGzHUZnbcatU63DFGEIiqZ6Q+1Uh6fua";
            context_sandbox_testuser_booo_u1.SoapApiServerUrl = "https://api.sandbox.ebay.com/wsapi";
           #endregion

           #region context_sandbox_testuser_booo_u2
        context_sandbox_testuser_booo_u2 = new ApiContext();

        context_sandbox_testuser_booo_u2.ApiCredential.ApiAccount.Application = "booodev4b-0441-43a6-87b5-812d096400a";
        context_sandbox_testuser_booo_u2.ApiCredential.ApiAccount.Certificate = "5ba4adc5-c765-4961-9faa-3a678644fc40";
        context_sandbox_testuser_booo_u2.ApiCredential.ApiAccount.Developer = "eb26b3f8-82c9-4aef-b710-26f9a08d4e0e";
        context_sandbox_testuser_booo_u2.ApiCredential.eBayToken = "AgAAAA**AQAAAA**aAAAAA**Ka2KTg**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wFk4GhCJCGoQ+dj6x9nY+seQ**xJoBAA**AAMAAA**Bx8ckL0bXbGwok1sd8/ehrUBratoi+cwejM+etfJ749kptpFou+4LoYZjz31dQ0Wy3rBkrujUMZ0aC8kADV5neSHhBRRCZeAXLyc/I6qfn5RLXvAcmC/s5nIBSOZUG994yxp3QzPt3zzdvCGaHm5C6jjfUrlEJb9noQKcGIUvmgKk/2jdHDbV3eJCuPU6QxBa8aKFXXLVR4V8AVm408Owtu2DumkhdHstZxAZJ35UPtef4Z7S+8PNrdtDm0f8uulZTEYoGXKV+sOxxxu/owXU7uGcpKf5CdqVbw0CzdK0byh/Mv+vAcxNFkNSVvuXlicnfcQDQl2v9FSlzPtmgmukhS93HmOUvgkYTHEFz9Ic+6ldvQQGoVBCaKhOAP1XlcGzYaPCHhcHVv8xnkWe2+kch24bp0CkG951rJsUkEpaMBnb9DgYwMpu3V74O0nCxPaDiZqieiui9BMZkaH9ApYUiy0NVbomMtkdWcZtAViiF0oK8xO348XcU0L+SYkcZE6+IT3bqA0by82rb0DOprs//ud216PBpHkQjGYrbktrUbZgdbZmcPUsKaeMv6RTDqrjgPpWacp2KqYwHMyDxRF/a0NVckBNa9emomW5ZNah6PV4/PCZ/dmzrVv8qSw6eQbhH0K8f1bD4L7qsXYsS1sHyRBpJW7PYToYNdQ+LPuEsN76Cy0ADR8P3hQmSI5U5qedpvND/0r98LgyC53RmxdtAq01gTneEDYVm2eW4H/0tXYo7JwPWmBrjiWQ+Z/l2AR";
        context_sandbox_testuser_booo_u2.SoapApiServerUrl = "https://api.sandbox.ebay.com/wsapi";
        #endregion


           #region context_product_antboy888
            context_product_antboy888 = new ApiContext();

            context_product_antboy888.ApiCredential.ApiAccount.Application = "booodev57-ecde-4756-bd26-1d636600f91";
            context_product_antboy888.ApiCredential.ApiAccount.Certificate = "127437d2-afc1-4cfd-83bf-0d8011350e0f";
            context_product_antboy888.ApiCredential.ApiAccount.Developer = "eb26b3f8-82c9-4aef-b710-26f9a08d4e0e";
            context_product_antboy888.ApiCredential.eBayToken = "AgAAAA**AQAAAA**aAAAAA**dH5HTg**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6AElYekDpaBqQ+dj6x9nY+seQ**/jcBAA**AAMAAA**4nmAy2O9IgYz8B3bvf2KqlF7rqYzCnoFNB5CgMg6V4XFdb4OJ2C6te6d8q7Jaf3mU1q+M8rb7TBDTbpJawMLepHnwCp+4Fv0fBRgEXcqSZqg+6xJbAPdRpjkzMLnyjEi1WHrkqr8rfBMAkp393z2a+yvWtVTVmDyx+IyBcyeYMazdLBlbYobgesLjfvnGSJmbjA2mkBTuJ11xawMNosTGp5OH1OaBJqu2L2f4bcU5gqkLgXbyuIaX/vgJcuskWUXMb3GajIUlyibP1wB21Jzc+zKNuolNSdB7JmUVJqznsQAGnNHiafTQvo7GkfohfUlz80Fd7/tP8nYlnppBzQ7kc04k0WASAVJsJ9bh6b5SQ8CyhS6BANPoE8k1/vAHhw2sMCkV+n/VAJe+CiW8ACmyc5L4sFGQ7zlxQzwrkp7Ej7Y3r343UGSc0WEoEq4ZlUq+DyR9zx3rNMmNJiIkAIHimBhLJYdYu4aNch9mak7TDbtcXTLhJ/ztAjFPjZ5CPeZLO1oD/JW5iAeV+VLpHsBy4K9T+rcivpUS3jg1O3zVYvZOGwFmwfyMOw6y9/cr2I0sgarr2FP9xMA61VDEE8KVUVFnQBuMHSu8LcbkiRdodPwYrnocIm9BBLrU6c4qiyaO+4+2mWlSRQiQ1DbNdMq36HB8v39ivjPr7tD7zUbaXnElQHWSwDehZOTOEN/r1XtPuxfNYzaO5mfe3uwC+Y0P2uGSRs/ub13aGpWrIbFgUuFHPDRIBxLt4hZXwHUS4Pq";
            context_product_antboy888.SoapApiServerUrl = "https://api.ebay.com/wsapi";
            #endregion

            #region context_product_emmajewelry
            context_product_emmajewelry = new ApiContext();

            context_product_emmajewelry.ApiCredential.ApiAccount.Application = "booodev57-ecde-4756-bd26-1d636600f91";
            context_product_emmajewelry.ApiCredential.ApiAccount.Certificate = "127437d2-afc1-4cfd-83bf-0d8011350e0f";
            context_product_emmajewelry.ApiCredential.ApiAccount.Developer = "eb26b3f8-82c9-4aef-b710-26f9a08d4e0e";
            context_product_emmajewelry.ApiCredential.eBayToken = "AgAAAA**AQAAAA**aAAAAA**DRWPTg**nY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wNk4ugDZaKoQmdj6x9nY+seQ**/jcBAA**AAMAAA**s4hFxqP0lLPM+UanA9tPvgkuFTRP+/cl/lOXAy/4wYnkUfHCsQWbDD1S9P+Fc1uL48+W3DP6JlmAXVGOprUrXTJJWlA2901Ma9kGIt0Fnf9XjUToV5hDA3BxbzXHX0lvth9i1Gk9nLEdZjaE5R4obal5Olfpkm2xmNq9eLbuY2NTmyhbkJsuzz2jvsbyf31nFS396tQf+z25OF1lDNz3bEYg+LFIrQb9w7DAcSF4NpYX5zgHY+mJaL+vcCbGY4pXpbyfLVFCjJj11SHic6vgfgoBAjs1Gx7D6xucBCUWdQwX+pXejiV0jloPgMJqlEXS9RsfPJvKej57T0M1j+Uk46LXASZeXvesx1ME62HVPWgkuadhtBvEhyax2z28oVe7ee8xqvqcQpmP8YLfi0mlz84ZIJXNsFLXNiGXua+cVzYOM2YEFv1BagHBjX6ces8Fc+VBH/S9iKGJOHiiiFurLtBPOlHmsQeTxaEJhEZD1hxuIZkllMa+6rceTo+6deWkMRxijgUdc+h/j5vlVg1jiQTuSJDTG+DXGVqXDxDTdSb4mKvFny8MSdKNrTNyuTy7+4NhwEnQgzbHlAq6Zf/DAwet01EgHTUj5pcjTttiaWUAP0XibvZaZiKMD+i6TZHAmIrjfQOdNGV44LyRgaPp/j/KMqndUAwdLjh/nKrqPFKgLSUNjfY6fSnRjeRordSW9WzdniGOsjBD7DkbYv5wgUvY9/FNsWbMsgH7Egpek5bj9wYV/d0Cs7sOevAoZiHS";
            context_product_emmajewelry.SoapApiServerUrl = "https://api.ebay.com/wsapi";
            #endregion
       }

        public static ApiContext GetEbayContext(string accountName)
        {
            switch (accountName)
            { 
                case "testuser_booo_u1":
                    return context_sandbox_testuser_booo_u1;
                case "testuser_booo_u2":
                    return context_sandbox_testuser_booo_u2;
                case "antboy888":
                    return context_product_antboy888;
                case "emmajewelry":
                    return context_product_emmajewelry;
                default:
                    return new ApiContext();
            
            }        
        }


       
    }
}
